package com.xiaobai.java_core.polymorphic;

import lombok.extern.slf4j.Slf4j;

/**
 * @Author 王天文
 * @Date 2024/12/7 20:44
 * @Description: 继承Animal，重写makeSound方法
 */
@Slf4j
public class Dog extends Animal{

    @Override
    public void makeSound() {
        log.info("汪汪汪");
    }
}
